home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 5817 / 5817.xpi / chrome / content / copyTable.xul < prev    next >
Extensible Markup Language  |  2010-02-11  |  2KB  |  62 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  3. <?xml-stylesheet href="chrome://sqlitemanager/skin/sqlitemanager.css" type="text/css"?>
  4.  
  5. <!DOCTYPE window SYSTEM "chrome://sqlitemanager/locale/sqlitemanager.dtd">
  6.  
  7. <dialog id="dialog-copier" title="&window.title; - ©Table;"
  8.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  9.   buttons="accept,cancel"
  10.   ondialogaccept="return SmTableCopier.doOK();"
  11.   ondialogcancel="return true;"
  12.   onload="SmTableCopier.loadDialog();">
  13.  
  14.   <script type="application/x-javascript" src="globals.js"/>  
  15.   <script type="application/x-javascript">
  16.   <![CDATA[
  17.     var SmTableCopier = {
  18.       loadDialog: function() {
  19.         document.getElementById("dbNameFrom").appendItem(window.arguments[0], window.arguments[0]);
  20.         document.getElementById("dbNameFrom").selectedIndex = 0;
  21.         document.getElementById("mlTableFrom").value = window.arguments[1];
  22.         var dbList = document.getElementById("dbNameTo");
  23.         for (var i = 0; i < window.arguments[2].length; i++) {
  24.           dbList.appendItem(window.arguments[2][i], window.arguments[2][i]);
  25.         }
  26.         dbList.selectedIndex = 0;
  27.         document.getElementById("mlTableTo").focus();
  28.       },
  29.  
  30.       doOK: function() {
  31.         var aRetVals = window.arguments[3];
  32.         aRetVals.newDbName = document.getElementById("dbNameTo").value;
  33.         aRetVals.newTableName = document.getElementById("mlTableTo").value;
  34.         aRetVals.onlyStructure = document.getElementById("onlyStructure").checked;
  35.       }
  36.     }
  37.   ]]>
  38.   </script>  
  39.  
  40.   <hbox>
  41. <!-- from -->
  42.   <groupbox id="hb-from">
  43.     <caption label="&From;"/>
  44.     <label style="padding-top:3px" control="dbNameFrom" 
  45.         value="&Database;:"/>
  46.     <menulist id="dbNameFrom" disabled="true"/>
  47.     <label style="padding-top:3px" control="mlTableFrom" value="&Table;:"/>
  48.      <textbox id="mlTableFrom" style="width: 25ex" readonly="true"/>
  49.   </groupbox>
  50. <!-- to -->
  51.   <groupbox id="hb-to">
  52.     <caption label="&To;"/>
  53.     <label style="padding-top:3px" control="dbNameTo" 
  54.         value="&Database;:" accesskey="D"/>
  55.     <menulist id="dbNameTo" />
  56.     <label style="padding-top:3px" control="mlTableTo" accesskey="&enterNewTable.ak;" value="&enterNewTable;:"/>
  57.      <textbox id="mlTableTo" style="width: 25ex"/>
  58.   </groupbox>
  59.   </hbox>
  60.   <checkbox id="onlyStructure" label="&onlyStructure;"/>
  61. </dialog>
  62.